package com.hll.spring.anno.service;

import com.hll.spring.anno.dao.UserDao;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author hll
 * @create 2022-05-11 12:42
 */
@Service
@Data
public class UserServiceImpl implements UserService {
  // @Autowired  //根据类型进行注入
  // @Qualifier(value = "userDaoImpl1") //根据名称进行注入
  // @Resource  //根据类型进行注入
  // @Resource(name = "userDaoImpl") // 根据名称进行注入
  @Autowired private UserDao userDao;

  @Value(value = "abc")
  private String name;

  @Override
  public void doSome() {
    System.out.println("do some");
  }
}
